package com.zk.life;

/**
 * @author ZK
 * @Description
 * @time 2021/4/25 14:37
 * @note
 */
public class LifeDefault {
    private String name;


    public String getName() {
        return name;
    }

    public LifeDefault() {
        System.out.println("1 constructor method!");
    }
    public void setName(String name) {
        System.out.println("2 set method!");
        this.name = name;
    }

    public void initMethod() {
        System.out.println("3 init method!");
    }

    public void destroyMethod() {
        System.out.println("5 destroy method!");
    }
}
